From: Jasper St. Pierre Date: Sat, 1 Oct 2011 02:23:04 +0000 (-0400) Subject: layout: Fix the actor tracking parameter parsing X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7519 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a3528bf9737e90aeaa23c34987df018616e15576;p=gnome-shell.git layout: Fix the actor tracking parameter parsing It's not appropriate to inherit from the parent property if we pass "false" as a value, especially when all current parameters are booleans. https://bugzilla.gnome.org/show_bug.cgi?id=660608 --- diff --git a/js/ui/layout.js b/js/ui/layout.js index 4e239e6e0..0fe255ed4 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -625,7 +625,7 @@ Chrome.prototype = { // We can't use Params.parse here because we want to drop // the extra values like ancestorData.actor for (let prop in defaultParams) { - if (!params[prop]) + if (!params.hasOwnProperty(prop)) params[prop] = ancestorData[prop]; }